package edu.hunau.pojo;

/**
 * @author hb
 * @date 2022-11-08 07:56:01
 */
public class Apple {

    private String color;
    private Integer weight;

    @Override
    public String toString() {
        return String.format("Apple{color=%s,weight=%d}",color,weight);
    }

    public Apple() {
    }

    public Apple(String color, Integer weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
}
